#include "color.h"


int main(void)
{
#if 0	
	// 警告
	// 调试
	// 普通
	// 完成
	ColorStyle sty1 = {.fg = COLOR_FG_DEFAULT, .bg = COLOR_BG_RED, .style = STYLE_UNDERLINE};
	ColorStyle sty2 = {.fg = COLOR_FG_BLUE, .bg = COLOR_BG_YELLOW, .style = STYLE_BOLD};
	ColorStyle sty3 = {.fg = COLOR_FG_GREEN, .bg = COLOR_BG_DEFAULT, .style = STYLE_NORMAL};
	ColorStyle sty4 = {.fg = COLOR_FG_DEFAULT, .bg = COLOR_BG_DEFAULT, .style = STYLE_NORMAL};
	
	color_print(sty1, "警告，超出限制！\n");
	color_print(sty2, "已经加载了%d%%\n", 10);
	color_print(sty3, "操作了货物存储\n");
	color_print(sty4, "默认样式\n");
	
	color_print( (ColorStyle){
		.fg = COLOR_FG_DEFAULT, 
		.bg = COLOR_BG_DEFAULT, 
		.style = STYLE_BOLD}, 
		"换一种方式赋值"	
			);
#endif

	const ColorStyle *sty1 = theme_get(THEME_DEFAULT);
	color_print( *sty1, "默认样式\n");
	const ColorStyle *sty2 = theme_get(THEME_ERROR);
	color_print( *sty2, "错误提示\n");
	const ColorStyle *sty3 = theme_get(THEME_WARNING);
	color_print( *sty3, "警告提示\n");
	const ColorStyle *sty4 = theme_get(THEME_SUCCESS);
	color_print( *sty4, "成功提示\n");
	const ColorStyle *sty5 = theme_get(THEME_DEBUG);
	color_print( *sty5, "调试信息\n");
	
	ColorStyle sty6 = {
		.fg = COLOR_FG_DEFAULT, 
		.bg = COLOR_BG_RED, 
		.style = STYLE_UNDERLINE
		};
	color_print( sty6, "自定义\n");
	
	return 0;
	
}


